using UnityEngine;
using System.Collections;

public class CreditScript : MonoBehaviour {
	
	private string textFieldString = "Bob";
	
	void OnGUI()
	{
				GUILayout.BeginArea(new Rect(15,10,55,25));
		if (GUILayout.Button("Back"))
		{
			Application.LoadLevel("Menu");
			gameObject.AddComponent<MainScript>();
		}
		GUILayout.EndArea();
		
		GUILayout.BeginArea(new Rect(Screen.width/2-50, Screen.height/2-50, 115, 55));
		GUILayout.BeginVertical();
		textFieldString = GUILayout.TextField(textFieldString);
		GUILayout.BeginHorizontal();
		GUILayout.Label(textFieldString);
		GUILayout.Label("made this.");
		
		GUILayout.EndHorizontal();
		GUILayout.EndVertical();
		GUILayout.EndArea();
		
	}
}
